Repository navigation
Conversation
INK-Q
requested changes
Nov 28, 2026
INK-Q
left a comment
Owner
There was a problem hiding this comment.
Thanks @0x7b1e for adding commit serialization and pre-write snapshot validation to apply_edits! The pendingEditCommit promise queue handles release cleanly via finally (no deadlock or rejection-chain poisoning), and the snapshot checks cover regular files, newly created files, and dangling symlinks well.
A couple of items to clean up before merging:
P1 (Must Fix)
- Coordinate / consolidate with sibling PR #103:
- Both #102 and #103 modify
commitPlannedWritesinsrc/tools/apply-edits.tsand insert tests at the exact same location (test/apply-edits.test.ts:725), so they will merge-conflict if kept independent. - Combining them (or stacking #103 on top of #102) also resolves a minor UX quirk in #102 where a pre-write
Edit conflictcurrently gets wrapped byrunApplyEditsasWrite failed (changes rolled back): Edit conflict: ...even though no files were written.
- Both #102 and #103 modify
- Complete PR metadata & document concurrency scope:
- Please update the PR title to conventional commit format (e.g.
fix(apply-edits): serialize commits and reject stale snapshots) and fill in the PR Summary & Checklist (currently the blank template). - Please briefly note in code comments/PR summary that
pendingEditCommitserializes concurrent edits within a single Node/MCP process (separate--clisubprocesses still get pre-write snapshot verification without a cross-process file lock).
- Please update the PR title to conventional commit format (e.g.
Checklist
- Consolidate with #103 (or rebase sequentially) so pre-write
Edit conflicterrors don't emit a misleading(changes rolled back)prefix - Fill in PR title, summary, and checklist
- Rebuild
dist/mcp-server.mjsvianpm run buildand verify CI passes
5 tasks
Contributor
Author
|
the pr issues may be fixed, the developer can double check. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Checklist
dev(only release PRs fromdevor urgenthotfix/*PRs targetmain)npm run typechecknpm run buildand committed updateddist/*.mjsbundles (ifsrc/changed)npm test(andnpm run validateifplugin.json/hooks.json/mcp_config.json/rules/changed)